package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-05-11
 */
@Getter
@Setter
@TableName("admin_resources")
@NoArgsConstructor
public class AdminResources implements Serializable {

    private static final long serialVersionUID = 1L;

    public AdminResources(String resourcesName, String resourcesUri) {
        this.resourcesName = resourcesName;
        this.resourcesUri = resourcesUri;
    }

    /**
     * 资源表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资源名称
     */
    @TableField("resources_name")
    private String resourcesName;

    /**
     * 资源路径
     */
    @TableField("resources_uri")
    private String resourcesUri;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
